<script setup>
const now = Date.now();
const firstJobTime = new Date('2020/3/15');
const birthday = new Date('1995/11/06');
const birthYearMonth = Intl.DateTimeFormat(birthday, { year: 'numeric', month: 'long' }).format(birthday);


function formatAge(ms, fixed = 0) {
    return (ms / 1000 / 60 / 60 / 24 / 365).toFixed(fixed);
}

const workAge = formatAge(now - firstJobTime, 1);
const age = formatAge(now - birthday);
const email = 'zpjgsby@qq.com';

const infos = [
    '🎓' + '硕士',
    '👨🏻' + '男',
    '🐣' + birthYearMonth,
    '🖥️' + workAge + '年工作经验',
    '📞' + '18202409203',
    '✉️' + email,
].join(' | ');

</script>

<template>
    <p> {{ infos }} </p>
</template>